<template>
    <div class="wrap">
      <div class="header-wrap flex">
          <div class="back flex" v-if="showBack">
              <span class="back-arrow"></span>
          </div>
          <span>{{navTitle}}</span>
      </div>
    </div>
</template>

<script>
export default {
  props: {
    navTitle: "",
    showBack:false
  }
};
</script>

<style lang="scss" scoped>
@import "../base/css/_base.scss";
.wrap{
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  max-width: 750px !important;
  margin: 0 auto;
  z-index: 100;
  width: 100%;
  height: torem(90px);
}
.header-wrap {
  height: torem(90px);
  width: 100%;
  font-size: torem(36px);
  color: #fff;
  justify-content: center;
  align-items: center;
  background: #B86919;
  background-size: 100%;
  position: relative;
  z-index:100;
  .back {
    width: torem(80px);
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    .back-arrow {
      border-left: 2px solid #fff;
      border-bottom: 2px solid #fff;
      width: torem(30px);
      height: torem(30px);
      transform: rotate(45deg);
    }
  }
}
</style>
